const KoaRouter = require('koa-router');
const { createOrReplyComment } = require('../controller/comment');
const { validateMomentIsExist, validateReplyComment } = require('../middleware/module/comment');

const router = new KoaRouter({ prefix: '/comment' });

router.post('/create', validateMomentIsExist, validateReplyComment, createOrReplyComment);

module.exports = router;
